<div class="select-box">
    <form action="detail-statistic.php?sys_part=task" class="layui-form" id="search" >



        <div class="layui-form-item">
            <label class="layui-form-label">截止时间</label>

            <div class="layui-input-block">
                <input type="text" name="select_startday" placeholder="请输入开始时间" autocomplete="off" class="layui-input"
                       onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"
                       style="float: left; width: 112px"
                       value="<?echo $start_date?>" >

                <span style="float: left;margin: 0 4px; line-height: 30px;">-</span>


                <input type="text" name="select_endday" placeholder="请输入结束时间" autocomplete="off"
                       class="layui-input" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})"  style="float: left; width:112px"
                       value="<?echo $end_date?>"  >
                <input type="hidden" name="sys_part"  value="task" >


            </div>


        </div>

        <button class="layui-btn  layui-btn-sm" ><i class="layui-icon">&#xe615;</i> 查找</button>

        <a class="layui-btn white  layui-btn-sm" href="detail-list.php?sys_part=task" ><i class="layui-icon">&#x1006;</i> 重置</a>


        <br class="clearfloat"/>
    </form>


</div>




<script>



    layui.use('form', function(){
        var form = layui.form;


        form.on('select()', function(data){
            //提交表单
            document.getElementById("search").submit();

        });



    });


</script>





